package com.zwzh.ribbon.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

/**
 * @description:
 * @author: zhoujie
 * @date: 2019-05-15 15:59
 */
@Service
public class RibbonService {
    @Autowired
    RestTemplate restTemplate;
    public String helloService(){
        return restTemplate.getForObject("http://SERVICE-HELLOWORLD/hello", String.class);
    }
}
